/**信息管理类--by王石 */
class messageManage {
	public constructor() {
	}
	/**用户小程序openid */
	public static opneid: any;
	/**用户昵称 */
	public static nickName: any;
	/**用户性别
	 * 1-男
	 * 2-女
	 * 0-未知
	 */
	public static gender: any;
	/**用户头像url */
	public static avatarUrl: any;
	/**用户userid */
	public static userid: any;
	/**回合数 */
	public static roundNumber: any;
	/**邀请函 */
	public static invitation: number;
	/**解析用户数据 */
	public static analysis_user_data(userInfo: any) {
		this.nickName = userInfo.nickName;
		this.gender = user_gender[userInfo.gender];
		this.avatarUrl = userInfo.avatarUrl;
	}

}
enum user_gender {
	"未知" = 0, "男" = 1, "女" = 2
}